package com.fingard.remoting.client;



/**作为客户端向远程服务发起建立长链接，再作为服务端接收远程的请求*/
public class TenantClientServer {
	
	private Thread execThread;
	private TenantClientThread tcThread;
	public TenantClientServer(){
		tcThread = new TenantClientThread();
	}
	
	public void start(){
		if(tcThread.isEnable()){
			tcThread.start();
			execThread = new Thread(tcThread);
			execThread.start();
		}
	}
	
	public boolean isEnable(){
		return tcThread.isEnable();
	}
}
